<%@page import="data.IUserDAO"%>
<%@page import="data.JDBCUserDAO"%>
<%@ page language="java" import="logic.*,show.*,data.*" 
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

</head>
<body>
<%      
		User usHead = null;
		usHead = (User)session.getAttribute("session.userAux");

		if(usHead == null){
			%>
<form class="loginpanel" action="FrontController?res=index.jsp" method= "post">
	<label>E-mail: <input name="username" type="text" ></label>&nbsp; &nbsp;
	<label>Contrase&ntilde;a: <input name="pass" type="password" maxlength="25" ></label>&nbsp; &nbsp;
	<input class="accessbutton" type="submit" name="login" value="Entrar" />
</form>
<div class="clear"></div>
<a href="FrontController?res=index.jsp"><img src="images/logo.png" /><img src="images/cesped.png" /><img src="images/cesped.png" /><img src="images/cesped.png" /></a><div id="carromato"><a href="shoppingKart.jsp"><img src="images/carrito.gif" /></a></div>
		<%}else{ %><form class="loginpanel" action="FrontController?res=index.jsp" method= "post">
	<label style="font-size: medium;">Hola <b><%=usHead.getNick() %>!</b></label>
	<label><a  style="color: blue;" href="out.jsp">desconectar</a></label>
	
	<input class="accessbutton" type="hidden" name="login" value="Entrar" />
</form>
		<div class="clear"></div>
<a href="index.jsp"><img src="images/logo.png" /><img src="images/cesped.png" /><img src="images/cesped.png" /><img src="images/cesped.png" /></a><div id="carromato"><a href="shoppingKart.jsp"><img src="images/carrito.gif" /></a></div>
		<%} %>
</body>
</html>